<template>
	<view class="list" @click="$emit('click')">
		<view class="listLeft">
			<text>{{title}}</text>
		</view>
		<view class="listRight">
			<text>{{text || ''}}</text>
			<image src="https://www.kmdj2018.com/Uploads/zfb/right.png" mode="aspectFit" :class="!iSimg?'isyin':''"></image>
		</view>
	</view>
</template>

<script>
	export default {
		name:"listtext",
		data() {
			return {
				
			};
		},
		props:{
			title:{
				type:String,
				default:'我是标题'
			},
			src:{
				type:String,
				default:''
			},
			text:{
				type:String | Number,
				default:''
			},
			iSimg:{
				type:Boolean,
				default:true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.list{
		padding: 0 32rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1rpx solid #e6e7eb;
		height: 112rpx;
		.listRight{
			display: flex;
			align-items: center;
			image{
				width: 48rpx;
				height: 48rpx;
			}
			>text{
				color: #999;
				font-size: 28rpx;
			}
		}
		.listLeft{
			display: flex;
			align-items: center;
			text{
				font-size: 28rpx;
				color: #333333;
			}
		}
	}
	.isyin{
		opacity: 0;
	}
</style>